package com.wry.service;

import com.wry.api.ApiService;
import org.apache.dubbo.config.annotation.DubboService;

/**
 * <h1>  <h1>
 *
 * @author wry
 * @since 2023/5/9 14:43
 */
// 指定注册到哪个中心，可以注册多个  可以指定具体版本，消费者调用
// 指定多种协议类型，既可以通过dubbo协议发布接口，也可以通过rest协议发布接口
@DubboService(registry = {"zookeeper","nacos"}, version = "1.0", protocol = {"dubbo","rest"})
public class ApiServiceImpl implements ApiService {

    @Override
    public String test(String msg) {
        System.out.println("provider【v1.0】收到 => "+ msg);
        return "provider【v1.0】收到 => "+ msg;
    }
}
